package org.ouwa.lms.client.ui.util;

import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class WidgetUtil {
	/**
	 * Creates a "hollow" widget with a fixed width.
	 * @param width The given width (in pixels)
	 * 
	 * @return An empty widget with the given width.
	 */
	public static Widget addHorizontalGap(String width) {
		Label col = new Label();
		col.setWidth(width);
		return col;
	}
	
	/**
	 * Creates a "hollow" widget with a fixed height.
	 * @param height The given height (in pixels)
	 * 
	 * @return An empty widget with the given height.
	 */
	public static Widget addVerticalGap(String height) {
		Label row = new Label();
		row.setHeight(height);
		return row;
	}
}
